import React from 'react';
import {
    View,
    Text,
    Image,
    TouchableOpacity,
    StyleSheet
}from 'react-native'

import BasePage from '../BasePage'
import NavigationBar from 'teaset/components/NavigationBar/NavigationBar';
import LottieView from 'lottie-react-native';
import Toast from 'teaset/components/Toast/Toast';

export default class BlueToothPage extends BasePage{
    renderNavigationBar(){
        return (
            <NavigationBar
                title='正在搜索设备'
                backgroundColor='#0ECDAC'
                leftView={<NavigationBar.BackButton onPress={()=>this.navigator.pop()} />}
            />
        );
    }
    componentDidMount(){
        setTimeout(() => {
            Toast.fail('没有找到任何智能设备')
            setTimeout(()=>{
                this.navigator.pop() 
            },1500);
        }, 6000);
    }
    renderPage(){
        return (
            <View style={{flex:1, backgroundColor:'white'}}>
                <LottieView
                    source={require('./ripple-w360-h360.json')}
                    autoPlay
                    loop
                />
            </View>
        );
    }
}